<%@ page contentType="text/html;charset=UTF-8"%>
 <%@page import="com.augurit.common.system.web.auth.form.LoginUserForm"%>
 <%@ include file="/common/taglibs.jsp"%>
 <%LoginUserForm form=(LoginUserForm)request.getSession().getAttribute("SES_LOGIN_USER"); %>
<%
String context=request.getContextPath();
String id=request.getParameter("id");
String  templateCode=request.getParameter("templateCode");   
String imptype=request.getParameter("imptype");//进入哪个action标识
 %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>道路占用信息录入</title>
<!-- Ext CSS -->
<!-- Ext CSS -->
<link href="<%=context %>/resources/js/ext/resources/css/ext-all.css" rel="stylesheet" type="text/css"/>
<link href="<%=context %>/resources/css/aos/ext-patch.css" rel="stylesheet" type="text/css"/>

<!-- Ext JS -->
<script src="<%=context %>/resources/js/ext/adapter/ext/ext-base.js" type="text/javascript"></script>
<script src="<%=context %>/resources/js/ext/ext-all.js" type="text/javascript"></script>
    
<!-- Ext 中文汉化 -->
<script src="<%=context %>/resources/js/ext/src/locale/ext-lang-zh_CN.js" type="text/javascript"></script>
    
<!-- 自定义JS及CSS -->
<link href="<%=context %>/resources/css/aos/ExtComponent.css" rel="stylesheet" type="text/css"/>
<link href="<%=context %>/wf/public/wf.css" rel="stylesheet" type="text/css"/>
<link href="<%=context %>/resources/css/aos/aos_blue.css" rel="stylesheet" type="text/css"/>
<!-- jquery基础JS -->
<script src="${ctx}/resources/js/aos/tool.js" type="text/javascript" ></script> 
<script src="${ctx}/resources/js/jquery/jquery.js" type="text/javascript"></script>
<script src="${ctx}/resources/js/jquery/jquery.form.js" type="text/javascript"></script>

<script src="<%=context %>/resources/js/aos/ext_ux/ExtCustomization.js" type="text/javascript"></script>
<script src="<%=context %>/wf/public/WfPublic.js" type="text/javascript"></script>

<script>
    var ctx = "${ctx}";
    Ext.BLANK_IMAGE_URL="${ctx}/resources/js/ext/resources/images/default/s.gif"
</script>
<script type="text/javascript">  


Ext.onReady(function(){
	var id=document.getElementById("id").value;
	var taskId=document.getElementById("taskId").value;
	var url="${ctx}/dllszy!simpleInput.action?templateCode=csdllszyspqx&id="+id+"&taskInstDbid="+taskId;
	var width=document.body.clientWidth;
	var height=document.body.clientHeight;
	if(height==0){
		height=document.documentElement.clientHeight;
	}
	new Ext.Panel({   
	                title : "道路占用信息录入",   
	                width : width,   
	                height : height, 
	                titleCollapse : true,   
	                collapsible : true,   
	                html : '<iframe id="baseinfo" name="baseinfo" src="'+url+'" frameborder="0" width="'+width+'px" height="'+height+'px"></iframe>',   
	                renderTo : "p1",   
	                tbar : _tbar 
	            
	  
	});  
});
    
var _tbar = new Ext.Toolbar({   
                buttons : [ {   
                    text : "保存",   
                    iconCls:'icon-save',
                    handler : saveinfo  
                },{   
                    text : "公示",   
                    iconCls:'icon-edit',
                    handler : doGs  
                } ,{   
                    text : "关闭",   
                    iconCls:'icon-close',
                    handler : exitwin  
                }]   
            });   
 
	 function exitwin(){
	    window.close();
	 }
     
     function saveinfo(){
		
		document.frames["baseinfo"].save();

      }      
   function doGs(){
		document.frames["baseinfo"].doGs();

      }     
 
</script>
</head>

<body>
<form action="">
 <input class="text" type="hidden" id="id" name="id" value="${id}" />
  <input class="text" type="hidden" id="taskId" name="taskId" value="${taskInstDbid}" />
 
 <div id='p1'></div> 
 </form>
</body>
</html>
